home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
10,000 Great Games
/
10,000 Great Games.iso
/
Product
/
66
/
data1.cab
/
Source_Files
/
Src
/
Disaster.cpp
< prev
next >
Wrap
C/C++ Source or Header
|
2000-01-16
|
449b
|
29 lines
#include "stdafx.h"
cDisaster *disaster = 0;
void cDisaster::make()
{
new cDisaster();
}
cDisaster::cDisaster()
: cGameObject(cProperties::find_w_error("DISASTER"))
{
add((cList **)&disaster);
set_sequence(0, TRUE);
set_position(surface->w / 2, 0);
}
int cDisaster::control()
{
cGameObject::control();
if (y2 < surface->start)
set_position(surface->w / 2, y + (surface->start - y2));
return TRUE;
}